public class test1
{
    public static void main(String[] args) {
        //异或运算
        //相同取0，相反取1;
        int a = 3; //011
        int b = 5; //101
        int c = 3; //011
        System.out.println(a^b^c);//110

    }
}
